Target

annotation class Target(allowedTargets: AnnotationTarget)

This meta-annotation indicates the kinds of code elements which are possible targets of an annotation.

If the target meta-annotation is not present on an annotation declaration, the annotation is applicable to the following elements: CLASS, PROPERTY, FIELD, LOCAL_VARIABLE, VALUE_PARAMETER, CONSTRUCTOR, FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER.

Constructors

Target
Link copied to clipboard
fun Target(vararg allowedTargets: AnnotationTarget)

Properties

allowedTargets
Link copied to clipboard
val allowedTargets: Array<out AnnotationTarget>

list of allowed annotation targets